<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <div v-html="html"></div>
      <button v-on:click.stop.prevent="clickHandler">点击按钮</button>
    </div>
    <script src="./src/dep.js"></script>
    <script src="./src/watcher.js"></script>
    <script src="./src//compiler.js"></script>
    <script src="./src/observer.js"></script>
    <script src="./src/vue.js"></script>
    <script>
      var vm = new Vue({
        el: "#app",
        data: {
          count: 1,
          html: "hello world",
        },
        methods: {
          clickHandler(e) {
            console.log("点击", e);
            console.log(this)
          },
        },
      });

      console.log(vm);
    </script>
  </body>
</html>
